from django.urls import path
from . import views

app_name = 'collect'

urlpatterns = [
    # 收藏列表
    path('my-collections/', views.MyCollectionsView.as_view(), name='my_collections'),

    # 添加收藏
    path('add/<int:attraction_id>/', views.AddCollectView.as_view(), name='add_collect'),

    # 快速收藏
    path('quick-add/<int:attraction_id>/', views.QuickCollectView.as_view(), name='quick_collect'),

    # 切换收藏状态
    path('toggle/<int:attraction_id>/', views.ToggleCollectView.as_view(), name='toggle_collect'),

    # 更新收藏
    path('update/<int:pk>/', views.UpdateCollectView.as_view(), name='update_collect'),

    # 删除收藏
    path('delete/<int:pk>/', views.DeleteCollectView.as_view(), name='delete_collect'),
]